package com.sz.virtualbank.web.vo.transaction;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 交易记录视图对象
 * 
 * @author Claude
 */
@Data
@ApiModel(description = "交易记录信息")
public class TradeRecordVO {
    
    @ApiModelProperty(value = "交易记录ID")
    private Long id;
    
    @ApiModelProperty(value = "交易流水号")
    private String tradeNo;
    
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    
    @ApiModelProperty(value = "交易类型：1-充值，2-提现，3-转账，4-支付，5-退款")
    private Integer tradeType;
    
    @ApiModelProperty(value = "交易类型名称")
    private String tradeTypeName;
    
    @ApiModelProperty(value = "交易金额")
    private BigDecimal amount;
    
    @ApiModelProperty(value = "交易后余额")
    private BigDecimal balance;
    
    @ApiModelProperty(value = "目标账户")
    private String targetAccount;
    
    @ApiModelProperty(value = "交易状态：0-处理中，1-成功，2-失败")
    private Integer status;
    
    @ApiModelProperty(value = "交易状态名称")
    private String statusName;
    
    @ApiModelProperty(value = "备注")
    private String remark;
    
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    
    @ApiModelProperty(value = "交易渠道")
    private String channel;
    
    @ApiModelProperty(value = "交易渠道名称")
    private String channelName;
}
